<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS3属性选择器</title> 
    <style type = "text/css">
     div[id^="page"]{
         height: 20px;
         background-color: red;
         margin-bottom:10px;
     }
     div[id$="Content"]{
         height: 30px;
         background-color: black;
         margin-bottom: 10px;
     }
     .info[data-text*="eL" i]{
         height: 40px;
         background-color: blue;
     }
     </style>
</head>
<body>
  <div id="page1"></div>
  <div id="page2"></div>
  <div id="infoContent"></div>
  <div id="textContent"></div>
  <p class="info" data-text="hello"></div>
</body>
</html>